<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>用户登录</title>
</head>
<body>



<form action="${pageContext.request.contextPath}/loginServlet" method="post">
    用户名:<input type="text" name="username" value="${cookie.rememberMe.value}"><br>
    密码: <input type="password" name="password"><br>
    记住用户名: <input type="checkbox" name="rememberMe" value="yes"><br>

    <input type="submit" value="登录"><br>

    <div style="color: red">
        <%--显示登录错误信息--%>
        ${msg}
    </div>
</form>

</body>
</html>
